package com.nexgo.payment.action.inputamount;

import com.nexgo.payment.BasePresenter;
import com.nexgo.payment.BaseView;
import com.nexgo.payment.widget.keyboard.NumKeyBoard;

/**
 * Created by xiaox on 2017/7/5.
 */

public interface InputAmountContract {
    interface View extends BaseView<Presenter> {

        /**
         * 提示退货金额超限
         *
         */
        void showOverRefundAmount();
        /**
         * 提示确认金额
         *
         * @param amount 金额
         */
        void showConfirmAmount(String amount);

        /**
         * 输入成功后回调
         *
         * @param amount 金额
         */
        void showSuccessful(String amount);

        /**
         * 界面状态
         *
         * @return
         */
        boolean isActive();
    }

    interface Presenter extends BasePresenter {

        /**
         * 按键
         *
         * @param keyType 键类型
         */
        void pressKey(NumKeyBoard.KEY_TYPE keyType);
        /**
         * 导入输入金额
         *
         * @param amount 金额
         */
        void importAmount(String amount);

        /**
         * 确认输入金额
         *
         * @param amount 金额
         */
        void confirmAmount(String amount);
    }
}
